home *** CD-ROM | disk | FTP | other *** search
/ Building Homes of Our Own / Building Homes of our Own.iso / setup / data1.cab / Everything / working / houCons.dxr / interface_200_IntWallsDisplay behave.ls < prev    next >
Encoding:
Text File  |  2002-09-25  |  814 b   |  33 lines

  1. property mySprite, myListToDisplay, myType, myRegion, ancestor, tileNum
  2.  
  3. on beginSprite me
  4.   global gUserDataMan, gActorListMan
  5.   unRegisterSprite(gActorListMan, mySprite)
  6.   mySprite = me.spriteNum
  7.   myRegion = getCurRegion(gUserDataMan)
  8.   myType = #FloorPlanDisplay
  9.   myListToDisplay = findDisplayList(me)
  10.   ancestor = new(script("FloorPlanDisplayActions"), mySprite, myListToDisplay)
  11.   registerSprite(gActorListMan, mySprite)
  12. end
  13.  
  14. on findDisplayList me
  15.   listToReturn = []
  16.   repeat with x = 1 to 8
  17.     thisName = "SD InteriorWalls" && x
  18.     append(listToReturn, thisName)
  19.   end repeat
  20.   return listToReturn
  21. end
  22.  
  23. on endSprite me
  24.   global gActorListMan
  25.   unRegisterSprite(gActorListMan, mySprite)
  26. end
  27.  
  28. on sendTileName me, aType
  29.   if aType = myType then
  30.     return (the member of sprite mySprite).name
  31.   end if
  32. end
  33.